package la.iok.hzsvn.lewin.movie.model;

import java.util.Objects;

public class AppPackageParam {
    /**
     * 应用名称
     */
    private String appName;
    /**
     * 程序包的类别,android,windows,ios或者其他
     */
    private String packageType;
    /**
     * 产品分类，Lewin或者RH，默认为Lewin
     */
    private String productType;
    /**
     * 版本名称
     */
    private String versionName;
    /**
     * 版本值,与安卓端versionCode一致
     */
    private Integer versionCode;

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getPackageType() {
        return packageType;
    }

    public void setPackageType(String packageType) {
        this.packageType = packageType;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public Integer getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(Integer versionCode) {
        this.versionCode = versionCode;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AppPackageParam param = (AppPackageParam) o;
        return Objects.equals(appName, param.appName) && Objects.equals(packageType, param.packageType)
                && Objects.equals(productType, param.productType) && Objects.equals(versionName, param.versionName)
                && Objects.equals(versionCode, param.versionCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(appName, packageType, productType, versionName, versionCode);
    }
}
